< previous page page_817 next page >

Page 817
(table continued from previous page)
ControlsPropertiesSettings
Caption"Label7"
Height255
Left-71040
TabIndex15
Top360
Width2400
VB.LabelNamelbluserID
BorderStyle1 'Fixed Single
Caption"Label6"
Height255
Left-74880
TabIndex14
Top360
Width2400

After you add the data-bound grid objects to the form, you need to set some of their properties using the pop-up menu. Select the dbgDefault grid and click the alternate mouse button. Then select Retrieve Fields to load the fields. Now click the alternate button again and select Properties and click the Columns tab. Make the User ID column invisible. Perform the same steps for the dbgUserID data grid. Save the project before you add the code.
The first step in coding the User Access Rights page is to add three form-level variables to the User Maintenance Form.
Option Explicit
'
' user maint and login vars
Dim objRec As Object
Dim lgnResult As Long
Public strDBName As String
'
'***new >>> access rights vars
Dim strSQLDefault As String
Dim strSQLUserID As String
Public intRights As Integer
Next, add the code in Listing 21.21 to the SSTab1_Click event. This code fills out the rights form for the selected user.

 
< previous page page_817 next page >

If you like this book, buy it!